package io.bluerain.intent;

import android.app.Activity;
import android.content.ComponentName;
import android.os.Bundle;
import android.widget.LinearLayout;
import android.widget.TextView;

public class SecondActivity extends Activity {

    static String ACTION = "io.bluerain.action.FIRST";
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        LinearLayout layout = new LinearLayout(this);
        layout.setOrientation(LinearLayout.VERTICAL);
        ComponentName comp = getIntent().getComponent();
        TextView text = new TextView(this);
        text.setText("包名:" + comp.getPackageName() + "\n类限定名:" + comp.getClassName());
        layout.addView(text);
        setContentView(layout);
    }
}
